package com.gjy.check.config;

import com.gjy.check.aop.DoCheckPoint;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-08-11 10:41:21
 */
@Configuration
@ConditionalOnProperty(value = "check.enable", havingValue = "true")
public class CheckAutoConfigure {

    private static final Logger log = LoggerFactory.getLogger(CheckAutoConfigure.class);

    @Bean
    public DoCheckPoint doCheckPoint() {
        DoCheckPoint point = new DoCheckPoint();
        log.info("point {}", point);
        return point;
    }
}
